<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/WEB-INF/jsp/taglib.jsp" %>



<c:forEach items="${postReplyList}" var="postReply" varStatus="idx">
    <div class="row floors">
        <div class="col-md-2 user">
            <div id="user-info${idx.index}" class="user-info">
                <img src="../../../../images/activity_person.png" class="user-image img-circle" id="head_pic${idx.index}" style="cursor: pointer" onclick="window.location.href='<spring:url value='/personalCenter/index/${postReply.postReply.postReplyPub}' />'">
                <div class="user-name text-center" id="user_name${idx.index}">${postReply.postReply.postReplyPubName}</div>
            </div>
        </div>

        <div class="col-md-10 posts">
            <div class="posts-text">${postReply.postReplyContent.postReplyText}</div>
            <div class="reply-time-container">
                <div class="reply-more-container">
                    <a class="reply-more" id="replies-btn${idx.index}" onclick="showInfloor(${postReply.postReply.floorId},${idx.index},this)"><span class="reply-color">回复</span>{{6}}</a>
                    <a id="close-reply${idx.index}" class="reply-more close-reply" onclick="close_reply(this)" style="display: none;" >收起回复</a>
                    <div class="replyTime"><fmt:formatDate value="${postReply.postReply.postReplyCreateTime}"  type="both"/></div>
                    <div class="floorIndex">${idx.index+2}楼</div>
                </div>
            </div>

            <div class="reply-reply reply"  id="reply-reply${idx.index}"  style="display: none;">

                <div id="reply_infloor_list${idx.index}">
                    <jsp:include page="/WEB-INF/jsp/frontend/post/postReplyInfloorList.jsp" flush="true"/>
                </div>

                <div class="my-reply">
                    <div class="my-reply-button">
                        <a id="open-my-reply${idx.index}" onclick="open_reply(this)">我也说一句</a>
                        <a id="close-my-reply${idx.index}" style="display: none;" onclick="close_reply(this)">收起此回复</a>
                    </div>
                </div>
                <div class="my-reply-container" id="my-reply${idx.index}" style="display: none">
                    <div contenteditable="true" class="my-reply-content" id="infloor-reply${idx.index}"></div>
                    <button class="my-reply-commit" name="submitButton" type="submit" onclick="infloorSend(${postReply.postReply.floorId},${idx.index})">发表</button>
                </div>


            </div>
                <%--</div>--%>
        </div>


    </div>
</c:forEach>